<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			let web="https://www.baidu.com/s?ie=utf-8&tn=15007414_5_dg&wd=%E6%94%80%E6%9E%9D%E8%8A%B1%E5%AD%A6%E9%99%A2"
			let index=web.indexOf("?")
			let temp=web.substr(index+1)//index表示？位置
			console.log(temp);
			let array=temp.split('&')
			console.log(array)
			for (var i = 0; i < array.length; i++) {
				let args=array[i].split("=")
				let name=args[0]
				let value=args[1]
				obj[name]=value
			}
			cconsole.log(obj);
		</script>
	</head>
	<body>
	</body>
</html>
